<h2>Ressources</h2>

<ul class="editlist">
	<% @posts_by_category.each do |post| %>
	<li><span class="actions"><%= link_to('edit', :controller => 'admin/posts', :action => 'edit', :id => post)%> <%= link_to('destroy', :controller => 'admin/posts', :action => 'destroy', :id => post)%></span><%= link_to(post.title, post_path(post)) %> <small><%= post.category.title%></small></li>
	<% end %>
</ul>

<p><%= link_to('New ressource', :controller => 'admin/posts', :action => 'new')%></p>